package com.hhxy.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author ghp
 * @date 2023/4/29
 * @title
 * @description 用于接收用户信息
 */
@ApiModel(description = "用户信息传输类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfoDto {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "用户id", dataType = "Long", required = true)
    private Long id;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "用户昵称", required = true)
    @NotBlank
    private String nickName;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", required = true)
    @NotBlank
    private String avatar;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    @NotBlank
    private String email;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别 0-女 1-男", required = true)
    @NotBlank
    private String sex;
}
